//
//  ReadListCell.m
//  Leisure
//
//  Created by xalo on 16/6/29.
//  Copyright © 2016年 Hero. All rights reserved.
//

#import "ReadListCell.h"
@interface ReadListCell()
@property (weak, nonatomic) IBOutlet UIImageView *coverimg; //背景图
@property (weak, nonatomic) IBOutlet UILabel *content;      //内容
@property (weak, nonatomic) IBOutlet UILabel *name;         //专题

@end
@implementation ReadListCell
//重写父类的方法
- (void)setCellWithModel:(id)model{
    
    ReadListModel *readListModel = model;
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:readListModel.coverimg]];
    
    self.content.text = readListModel.content;
    self.name.text    = readListModel.title;
}




@end
